package com.iyundao.io.controller;

import com.iyundao.io.Service.SysMenuService;
import com.iyundao.io.tools.ResponseData;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by black on 2019/4/24.
 */
@RestController
@RequestMapping(value = "/api/menu")
public class MenuController {
    @Autowired
    SysMenuService sysMenuService;

    @ApiOperation(value="用户查询菜单", notes="用户查询菜单")
    @RequestMapping(value = "/findMenuByRoleId", method = {RequestMethod.POST,RequestMethod.GET}, produces = {"application/json;charset=UTF-8"})
    public ResponseData findMenuByRoleId(){
        return new ResponseData(200,"获取成功",sysMenuService.getMenuByRoleId());
    }

}
